﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false"  CodeFile="ActivityEdit.aspx.cs" Inherits="main_sales_ActivityEdit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>市场活动管理</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../css/base.css" rel="stylesheet" type="text/css" />

    <script src="../../js/base.js" type="text/javascript" charset="utf-8"></script>

    <script src="../../js/singleeditpoint.js" type="text/javascript" charset="utf-8"></script>

    <script src="../../js/validator.js" type="text/javascript" charset="utf-8"></script>

    <script src="../../js/comm.js" type="text/javascript" charset="utf-8"></script>
    
    <script src="../../js/common.js" type="text/javascript" charset="utf-8"></script>
       <script type="text/javascript" src="../../Web_ckeditor_html/ckeditor.js"></script>
    <script type="text/javascript" src="../../Web_ckfinder_html/ckfinder.js"></script>

    <script type="text/javascript">

        //选择用户发通知－网上申请
        function openChooseUsers(flg) {
            var url = "../admin/ChooseUser.aspx?EM=WEB.USER_MANAGE&MSG_TYPE=3&SOURCE_ID=<%=SOURCE_ID%>";
            var send = true;
            if (flg == '1') {
                send = confirm("保存成功!\r\n是否发送通知！");
            }

            if (send) {
                openwindow(url + "&" + Math.random(), '用户选择', '900', '600', 'yes');
            }

            return false;
        }
        
        function tomodifySave() { 
                //清除空格	
                TrimAllitems();       
                ClearErrMsg();
                var thisForm = document.forms[0];
 　
                if (Validator.Validate(thisForm, 3)) {
                    var val = document.getElementById("txt_MEMO").value;
                    var start_date = document.getElementById("txt_START_DATE").value;
                    var end_date = document.getElementById("txt_END_DATE").value;
                    if (CompareDate(start_date, end_date)==1) {
                        alert("结束日期不能大于开始日期");
                        return false;                    
                    }
                    if (val.length > 30000) {
                        alert("活动目的长度不能大于10000");
                        return false;
                    }
                    return true;
                }
                return false;
			}
    </script> 
    
</head>
<body>
<form name="form1" method="post" id="form1" runat="server">
<div class="conter_right">
<div class="sfkr"><span>当前位置：</span>市场活动管理</div>
     <fieldset class="dsadq"><legend style="color:#434449"><span id="page_title" runat="server">市场活动管理</span></legend>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="msels">
     <tr id="tr_AREA_ID" runat="server">
                   <td align="right" valign="middle">
                         <asp:Label ID="lbl_AREA_ID__AREA_NAME" runat="server" Text="所属区域："></asp:Label>
                    </td>
                    <td align="left" valign="middle" colspan="3">
                      <asp:DropDownList ID="ddl_AREA_ID__AREA_NAME" runat="server" CanZhao="AREA_NAME"
                            TiaoJian="DEL_FLG|0|3" dataType="Require" msg="不能为空" CssClass="saae"  OnSelectedIndexChanged="area_OnSelectedIndexChanged" AutoPostBack="True">
                        </asp:DropDownList>
                        <asp:Label ID="err_AREA_ID__AREA_NAME" runat="server"></asp:Label>
                    </td>                    
      </tr>
     <tr>   
      <td align="right" valign="middle">
                        <asp:Label ID="lbl_TITILE" runat="server" Text="活动名称："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:TextBox ID="txt_TITILE" runat="server" CssClass="srjks" MaxLength="100" Width="250px"
                            dataType="Require" msg="不能为空" ></asp:TextBox>
                        <asp:Label ID="err_TITILE" runat="server"></asp:Label>
                    </td>  
      <td width="16%" align="right" valign="middle">
      <asp:Label ID="lbl_BS_ID__PROJECT_NAME" runat="server" Text="对应商机"></asp:Label>：</td>
        <td width="34%" align="left" valign="middle" > 
         <asp:DropDownList ID="ddl_BS_ID__PROJECT_NAME" runat="server" CanZhao="PROJECT_NAME"
                            dataType="Require" msg="不能为空" CssClass="saae">
                        </asp:DropDownList> <asp:Label ID="err_BS_ID__PROJECT_NAME" runat="server"></asp:Label>
          </td>　
     </tr>
	  
         
	<tr>     
		<td width="16%" align="right" valign="middle">
			<asp:Label ID="lbl_START_DATE" runat="server" Text="活动开始时间"></asp:Label>：
		</td>
		<td width="34%" align="left" valign="middle" >
			 <asp:TextBox ID="txt_START_DATE" runat="server" CssClass="srjks" MaxLength="30" Width="100px"  ReadOnly
								 dataType="Require"  msg="不能为空"></asp:TextBox>
			<asp:Label ID="err_START_DATE" runat="server"></asp:Label>
		</td>
				<td width="16%" align="right" valign="middle">
			<asp:Label ID="lbl_END_DATE" runat="server" Text="活动结束时间"></asp:Label>：
		</td>
		<td width="34%" align="left" valign="middle" >
			 <asp:TextBox ID="txt_END_DATE" runat="server" CssClass="srjks" MaxLength="30" Width="100px"  ReadOnly
								dataType="Require"  msg="不能为空"></asp:TextBox>
			<asp:Label ID="err_END_DATE" runat="server"></asp:Label>
		</td>   
	</tr>
	
	<tr>
                    <td align="right" valign="middle">
                        <asp:Label ID="lbl_ADDRESS" runat="server" Text="活动地点："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:TextBox ID="txt_ADDRESS" runat="server" CssClass="srjks" MaxLength="100" Width="250px"
                            dataType="Require" msg="不能为空" ></asp:TextBox>
                        <asp:Label ID="err_ADDRESS" runat="server"></asp:Label>
                    </td>
                    <td align="right" valign="middle">
                        <asp:Label ID="lbl_MARKETERS__NAME" runat="server" Text="市场人员："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
 		   <asp:DropDownList ID="ddl_MARKETERS__NAME" runat="server" CanZhao="NAME" TiaoJian="DEPT_ID|2|3" dataType="Require" msg="不能为空" CssClass="saae">
                        </asp:DropDownList> <asp:Label ID="err_MARKETERS__NAME" runat="server"></asp:Label>
                    </td>
                </tr>    
     
      <tr id="Tr1"  runat="server">
<td align="right" valign="middle">
                        <asp:Label ID="lbl_TYPE" runat="server" Text="活动类型："></asp:Label>
                    </td>
                    <td align="left" valign="middle" colspan="3">
                        <asp:RadioButtonList ID="ddl_TYPE" runat="server" RepeatDirection="Horizontal" DefaultOption="1" />
                        <asp:Label ID="err_TYPE" runat="server"></asp:Label>
                    </td>                   
      </tr>
      <tr>
                    <td align="right" valign="middle">
                        <asp:Label ID="lbl_COMPUTATION" runat="server" Text="费用预算："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:TextBox ID="txt_COMPUTATION" runat="server" CssClass="srjks" MaxLength="100" Width="100px"
                            dataMARKETERS__NAME="Require" msg="不能为空" ></asp:TextBox>
                        <asp:Label ID="err_COMPUTATION" runat="server"></asp:Label>
                    </td>
                    
                </tr>
     <tr>     
      <td width="16%" align="right" valign="middle"><asp:Label ID="lbl_MEMO" runat="server" Text="活动目的"></asp:Label>：</td>
        <td width="84%" align="left" valign="middle" colspan="3" >
            <asp:textBox  id="txt_MEMO" runat="server" cols="60" rows="6" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                TextMode="MultiLine" Width="488px"></asp:textBox> 
                <asp:Label ID="err_MEMO" runat="server"></asp:Label></td>
     
     </tr>
     <tr>       
      <td width="16%" align="right" valign="middle"><asp:Label ID="lbl_RESOURCES" runat="server" Text="资源申请"></asp:Label>：</td>
        <td width="84%" align="left" valign="middle" colspan="3" >
            <asp:textBox  id="txt_RESOURCES" runat="server" cols="60" rows="6" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                TextMode="MultiLine" Width="488px"></asp:textBox> 
                <asp:Label ID="err_RESOURCES" runat="server"></asp:Label></td>
     
     </tr>
     <tr>       
      <td width="16%" align="right" valign="middle"><asp:Label ID="lbl_PERSONNEL" runat="server" Text="拟参加人员"></asp:Label>：</td>
        <td width="84%" align="left" valign="middle" colspan="3" >
            <asp:textBox  id="txt_PERSONNEL" runat="server" cols="60" rows="6" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                TextMode="MultiLine" Width="488px"></asp:textBox> 
                <asp:Label ID="err_PERSONNEL" runat="server"></asp:Label></td>
     
     </tr>
     <tr id="tr_report"  runat="server">     
      <td width="16%" align="right" valign="middle"><asp:Label ID="lbl_REPORT" runat="server" Text="活动报告"></asp:Label>：</td>
        <td width="84%" align="left" valign="middle" colspan="3" >
            <asp:textBox  id="txt_REPORT" runat="server" cols="60" rows="6" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                TextMode="MultiLine" Width="488px"></asp:textBox> 
                <asp:Label ID="err_REPORT" runat="server"></asp:Label></td>
     
     </tr>
      <tr id="tr_status"  runat="server">
                  <td align="right" valign="middle">
                        <asp:Label ID="lbl_STATUS" runat="server" Text="活动状态："></asp:Label>
                    </td>
                    <td align="left" valign="middle" colspan="3">
                        <asp:RadioButtonList ID="ddl_STATUS" runat="server" RepeatDirection="Horizontal" DefaultOption="1" />
                        <asp:Label ID="err_STATUS" runat="server"></asp:Label>
                    </td>                 
      </tr>
     <tr>  
     </table>
     </fieldset>
     </div>
 
      <div style="height:15px"></div>
        <div class="nstkaah" align="center" style="width:90%">   
         <asp:Button runat="server" Text="发送通知" CssClass="seaal" ID="btnChooseUsers" ToolTip="活动申请通知" 
                                         OnClientClick="return  openChooseUsers();" Visible="false" />
        <asp:Button runat="server" Text="保存" CssClass="seaal" ID="queding" ToolTip="保存" 
                                         OnClientClick="return  tomodifySave();"   OnClick="queding_Click" />
                                         <asp:Button runat="server" Text="返回" CssClass="seaal" ID="Button3" ToolTip="返回" OnClick="cmdCancel_Click" />
              </div>
              
	<!--jjjjjjjjjjjjjjjjjjjj页脚部分jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj-->
	<div id="footer"></div>
	
	<script language='javascript' type="text/javascript">
	    SetCalendar('txt_START_DATE');
	    SetCalendar('txt_END_DATE');
    </script>
   </form>
    
</body>
</html>
